package week05;

import java.util.Random;

public class GraphicProxy implements Element {
    private Graphic graphic;
    public GraphicProxy(Graphic graphic){
        this.graphic = graphic;
    }
    @Override
    public void Draw() {
        Random rand =new Random();
        if(rand.nextBoolean()){
           graphic.Draw();
        }else {
            System.out.print("GraphicProxy");
        }
    }
}
